import api from '@/api'

export function queryResourceApi(params) {
  return api.get('/tube/admin/queryResource', { params });
}

export function createResourceApi(data) {
  return api.post('/tube/admin/createResource', data);
}

export function updateResourceApi(data) {
  return api.put('/tube/admin/updateResource', data);
}

export function deleteResourceApi(params) {
  return api.delete('/tube/admin/deleteResource', {params});
}